import {ORDER_DATA} from '../actions/actionType'

const initState = {
    items:[]
}

const orderReducer = (state = initState, action) => {
    switch(action.type) {
        case ORDER_DATA:
            return {...state, items: action.obj.data.digestlist}
            
        default: return state
    }
}

export default orderReducer